package net.jblog.business.dao;

import java.util.List;

import net.jblog.data.model.Post;

public interface PostDao {

	void persist(Post entity);
	void merge(Post entity);
	
	Post findById(Long id);
	
	List<Post> findByCriteria(int index, int number, String order, boolean ascending);
	
	List<Post> findAllPosts();
	List<Post> findLastPost(int number);
	
	// Pour les modules
	List<Object[]> findMonthlyArchives();
}
